//
//  NSArray+mapUsingBlockTest.m
//  SAYAKA_Table
//
//  Created by numanuma08 on 2013/07/20.
//  Copyright (c) 2013年 勘米良. All rights reserved.
//

#import "NSArray+mapUsingBlockTest.h"
#import "NSArray+mapUsingBlock.h"

@implementation NSArray_mapUsingBlockTest

- (void) testIntToString
{
    NSArray* numberArray = @[[NSNumber numberWithInt:1], [NSNumber numberWithInt:2], [NSNumber numberWithInt:3]];
    
    NSArray* expected = @[@"1", @"2", @"3"];
    NSArray* actual = [numberArray mapUsingArray:^(id object){
        NSNumber* number = (NSNumber*)object;
        return number.stringValue;
    }];
    
    STAssertEqualObjects(expected, actual, @"配列の中身の型が変換できている");
}
@end
